<?php if(isset($_SESSION['user']['user_id']) && $_SESSION['user']['user_id']!=""){
if(isset($_GET['hello_first']) && $_GET['hello_first']=='hello'){?>
<?}else{?>
<div class="sidebar-menu col-md-4">
					<nav class=" sidebar-navbar-collapse menu" id="sidebar" >
						<div class="navbar-header">
							<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#left-side-menu">
								<span class="sr-only">Toggle navigation</span>
								<span class="glyphicon glyphicon-list"></span>

							</button>
						</div>
						<div class="navbar-collapse collapse" id="left-side-menu">
							<ul class="nav navbar-nav">
							<? if(isset($_SESSION['user']['user_type']) && $_SESSION['user']['user_type']=="user") {?>
			<li class="sale-offers-icon"><a href="<? echo $this->Url('products')?>/sales" title="Sales products"><i class="glyphicon"><span class="icon-bg"></span></i><span>Sales</span></a></li>
			<li><a href="<? echo $this->Url('products')?>/products-list" title="products list"><i class="glyphicon glyphicon-file"><span class="icon-bg"></span></i> <span>Products</span> </a></li>
			<li><a href="<? echo $this->Url('products')?>/buy-on-products" title="Buy sent"><i class="glyphicon glyphicon-open"><span class="icon-bg"></span></i><span>Buy Sent</span></a></li>
			<li><a href="<? echo $this->Url('products')?>/buy-received-products" title="Buy received"><i class="glyphicon glyphicon-save"><span class="icon-bg"></span></i><span>Buy Received</span></a></li>
			<li><a href="<? echo $this->Url('products')?>/bid-sent" title="Bid sent"><i class="glyphicon glyphicon-open"><span class="icon-bg"></span></i><span>Bid Sent</span></a></li>
			<li><a href="<? echo $this->Url('products')?>/bid-on-products" title="Bid received"><i class="glyphicon glyphicon-save"><span class="icon-bg"></span></i> <span>Bid Received</span></a></li>
			<li><a href="<? echo $this->Url('users')?>/change-password" title="Change password"><i class="glyphicon glyphicon-edit"><span class="icon-bg"></span></i> <span>Change password</span></a></li>
			<li><a href="<? echo $this->Url('profiles')?>/comment" title="Comments"><i class="glyphicon glyphicon-comment"> <span>Comment</span></a></li>
	   <? } else if(isset($_SESSION['user']['user_type']) && $_SESSION['user']['user_type']=="admin") {?>
			<li><a href="<? echo $this->Url('users')?>/admin_allusers-list" title="All users list"><i class="glyphicon glyphicon-user"><span class="icon-bg"></span></i><span>User</span></a></li>
			<li class="sale-offers-icon"><a href="<? echo $this->Url('products')?>/sales" title="products on sales"><i class="glyphicon"><span class="icon-bg"></span></i><span>Sales</span></a></li>
			<li><a href="<? echo $this->Url('products')?>/admin-product-list" title="products list"><i class="glyphicon glyphicon-file"><span class="icon-bg"></span></i><span>Products</span> </a></li>
			<li><a href="<? echo $this->Url('products')?>/buy-on-products" title="Buy sent"><i class="glyphicon glyphicon-open"><span class="icon-bg"></span></i> <span>Buy Sent</span></a></li>
			<li><a href="<? echo $this->Url('products')?>/buy-received-products" title="Buy received"><i class="glyphicon glyphicon-save"><span class="icon-bg"></span></i> <span>Buy Received</span></a></li>
			<li><a href="<? echo $this->Url('products')?>/bid-sent" title="Bid sent"><i class="glyphicon glyphicon-open"><span class="icon-bg"></span></i><span>Bid Sent</span></a></li>
			<li><a href="<? echo $this->Url('products')?>/bid-on-products" title="Bid received"><i class="glyphicon glyphicon-save"><span class="icon-bg"></span></i> <span>Bid Received</span></a></li>
			<li><a href="<? echo $this->Url('users')?>/change-password" title="Change password"><i class="glyphicon glyphicon-edit"><span class="icon-bg"></span></i><span class="icon-bg"></span></i> <span>Change password</span></a></li>
		<? } else if(isset($_SESSION['user']['user_type']) && $_SESSION['user']['user_type']=="superadmin") {?>
			<li><a href="<? echo $this->Url('users')?>/allusers-list" title="All admins list"><i class="glyphicon glyphicon-user"><span class="icon-bg"></span></i> <span>User</span></a></li>
			<li class="sale-offers-icon"><a href="<? echo $this->Url('products')?>/sales" title="products on sales"><i class="glyphicon"><span class="icon-bg"></span></i><span>Sales</span></a></li>
			<li><a href="<? echo $this->Url('products')?>/products-list" title="products list"><i class="glyphicon glyphicon-file"><span class="icon-bg"></span></i> <span>Products</span> </a></li>
			<li><a href="<? echo $this->Url('products')?>/buy-on-products" title="Buy sent"><i class="glyphicon glyphicon-open"><span class="icon-bg"></span></i> <span>Buy Sent</span></a></li>
			<li><a href="<? echo $this->Url('products')?>/buy-received-products" title="Buy received"><i class="glyphicon glyphicon-save"><span class="icon-bg"></span></i> <span>Buy Received</span></a></li>
			<li><a href="<? echo $this->Url('products')?>/bid-sent" title="Bid sent"><i class="glyphicon glyphicon-open"><span class="icon-bg"></span></i><span>Bid Sent</span></a></li>
			<li><a href="<? echo $this->Url('products')?>/bid-on-products" title="Bid received"><i class="glyphicon glyphicon-save"><span class="icon-bg"></span></i> <span>Bid Received</span></a></li>
			<li><a href="<? echo $this->Url('products');?>/all-categories-list" title="Categories list"><i class="glyphicon glyphicon-list"><span class="icon-bg"></span></i> <span>Categories</span></a></li>
			<li><a href="<? echo $this->Url('products');?>/all-industry-list" title="Industries list"><i class="glyphicon glyphicon-list"><span class="icon-bg"></span></i> <span>Industries</span></a></li>
			<li><a href="<? echo $this->Url('products');?>/all-country-list" title="Countries list"><i class="glyphicon glyphicon-list"><span class="icon-bg"></span></i> <span>Countries</span></a></li>
			<li><a href="<? echo $this->Url('users')?>/change-password" title="Change password"><i class="glyphicon glyphicon-edit"><span class="icon-bg"></span></i><span class="icon-bg"></span></i><span>Change password</span></a></li>
			<li><a href="<? echo $this->Url('products')?>/reports-list" title="Reports"><i class="glyphicon glyphicon-file"><span class="icon-bg"></span></i> <span>Reports</span></a></li>
       <?}?>
							</ul>
						</div>
					</nav>
				</div>
<?php }}else{?>
<script>
	window.location='<? echo $this->Url('home')?>';
</script>
<?php }?>